@extends('layout.index')
@section('title','')
@section('keywords','')
@section('description','')

{{-- 引入自己的css--}}
@section('stylesheet')
    <link rel="stylesheet" href="/css/admin/login/index.css" type="text/css">
@endsection

{{-- 引入自己所需要javascript--}}
@section('scriptTop')
    <script src="/js/jquery.fullPage.min.js"></script>
@endsection

@section('static-page')
    <div id="dowebok">
        <div class="section  section1 ">

            <form action="{{ URL('/auth/postlogin') }}" method="post">
                <div class="authcenter-container">
                    <div class="authcenter-body-login clearfix">
                        <div class="login login-modern ">
                            {{csrf_field()}}
                            @if(count($errors))
                                <div class="sl-error  sl-error-display" style="display:block;" errortype="0">
                                    <span class="sl-error-text">{{ $errors->first() }}</span>
                                </div>
                            @endif

                            <div class="ui-form-item" id="R-username">
                                <label class="ui-label">
                            <span class="ui-icon ui-icon-userDEF">
                                <i class="iconauth"><img src="/css/admin/login/img/usericon_32.png" /></i>
                            </span>
                                </label>
                                <input type="text"  class="ui-input ui-input-normal" name="email" value="{{ old('email') }}" autocomplete="off" maxlength="100" placeholder="用户名">
                            </div>
                            <div class="ui-form-item" id="R-userpasswd">
                                <label class="ui-label">
                            <span class="ui-icon ui-icon-userDEF">
                                <i class="iconauth"><img src="/css/admin/login/img/usericonpasswd_32.png" /></i>
                            </span>
                                </label>
                                <input type="password"  class="ui-input ui-input-normal" name="password" value="{{ old('password') }}" autocomplete="off" maxlength="100" placeholder="登录密码" >
                            </div>

                            <div class="ui-form-item" id="R-uservali">
                                <input type="text"  class="ui-input ui-input-short" name="captcha" value="" autocomplete="off" maxlength="100" placeholder="验证码" >
                                <a onclick="javascript:re_captcha();" >
                                    <img class="valicode" src="{{ URL('admin/kit/captcha/1  ') }}"  alt="验证码" title="刷新图片">
                                </a>
                            </div>

                            <div class="ui-form-item" id="R-uservali">
                                <input type="submit"  class="ui-button" name="logonVali" value="登录" autocomplete="off" maxlength="100" placeholder="验证码" >
                            </div>

                        </div>

                    </div>
                </div>
            </form>


        </div>
    </div>


@endsection

@section('script')
    <script type="text/javascript">
        $(function(){
            $('#dowebok').fullpage();
        });
        function re_captcha() {
            $url = "{{ URL('/admin/kit/captcha') }}";
            $url = $url + "/" + Math.random();
            $(".valicode").attr("src",$url);
        }
        if(window.parent != window){
            window.parent.location='/auth/login';
        }
    </script>
@endsection